package com.ruoyi.system.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 测试用例对象 test_case
 * 
 * @author ruoyi
 * @date 2023-09-26
 */
public class TestCase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 前置条件 */
    @Excel(name = "前置条件")
    private String precondition;

    /** 模块ID */
    @Excel(name = "模块ID")
    private Long moduleId;

    private TestModule module;
    private  Long planId;

    /** 用例步骤信息 */
    private List<TestStep> testStepList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setPrecondition(String precondition) 
    {
        this.precondition = precondition;
    }

    public String getPrecondition() 
    {
        return precondition;
    }
    public void setModuleId(Long moduleId) 
    {
        this.moduleId = moduleId;
    }

    public Long getModuleId() 
    {
        return moduleId;
    }

    public TestModule getModule() {
        return module;
    }

    public void setModule(TestModule module) {
        this.module = module;
    }

    public Long getPlanId() {
        return planId;
    }

    public void setPlanId(Long planId) {
        this.planId = planId;
    }

    public List<TestStep> getTestStepList()
    {
        return testStepList;
    }

    public void setTestStepList(List<TestStep> testStepList)
    {
        this.testStepList = testStepList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("precondition", getPrecondition())
            .append("moduleId", getModuleId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("testStepList", getTestStepList())
            .toString();
    }
}
